package com.cskaoyan.mall.service;

import com.cskaoyan.mall.bean.Admin;
import com.cskaoyan.mall.bean.Log;
import com.cskaoyan.mall.bean.Role;
import com.cskaoyan.mall.bean.Storage;
import com.cskaoyan.mall.bean.bo.AdminLoginBo;
import com.cskaoyan.mall.bean.vo.AdminOptionVO;
import com.cskaoyan.mall.bean.vo.ObjectsVO;
import com.cskaoyan.mall.bean.vo.ResultVO;
import java.util.List;

/**
 * Created by Zsp
 * 2021/1/9
 */
public interface AdminService {

    boolean checkUserLoginInfo(AdminLoginBo loginBo);

    ObjectsVO<Admin> getAdminList(Integer page, Integer limit, String sort, String order, String username);

    List<AdminOptionVO> getOptionList();

    ResultVO storageAdminAndInfo(Admin admin, Log log);

    ResultVO update(Admin admin, Log log);

    ResultVO delete(Admin admin, Log log);

    ObjectsVO<Log> getLogList(Integer page, Integer limit, String sort, String order, String name);

    ObjectsVO<Storage> getStorageList(Integer page, Integer limit, String sort, String order, String name, String key);

    Integer insertLog(Log log);

    ResultVO updateStorage(Storage storage, Log log);

    ResultVO deleteStorage(Storage storage, Log log);

    ObjectsVO<List<Role>> getRoleList(Integer page, Integer limit, String sort, String order, String name);

    Storage createStorage(Storage storage);
}
